FileIdFactory = { id:0 }

FileIdFactory.getNextId = function()
{
	return ++FileIdFactory.id;
}
FileIdFactory.previewNextId = function()
{
	return FileIdFactory.id + 1;
}

/**
 * 
 * @param {Number} id
 * @param {String} name
 */
ul.File = function ( id, name )
{
	this.id = id;
	this.name = name || "untitled";
};

ul.File.prototype = {
	
	filterMode : ul.Filter.GREATER_THAN,
	
	filterLevel : DEBUG,
	
	cache : "",
	
	scroll : 0,
	
	setId : function ( id )
	{
		this.id = id;
	},
	
	getId : function ()
	{
		return this.id;
	},
	
	setName : function ( name )
	{
		this.name = name;
	},
	
	getName : function ()
	{
		return this.name;
	},	
	
	setCache : function ( content )
	{
		this.cache = content;
	},
	
	getCache : function ()
	{
		return this.cache;
	},
	
	clearCache : function ()
	{
		this.cache = "";
	},
	
	setScroll : function ( scroll )
	{
		this.scroll = scroll;
	},
	
	getScroll : function ()
	{
		return this.scroll;
	},
	
	setFilterMode : function ( mode )
	{
		this.filterMode = mode;
	},
	
	getFilterMode : function ()
	{
		return this.filterMode;
	},
	
	setFilterLevel : function ( level )
	{
		this.filterLevel = level;
	},
	
	getFilterLevel : function ()
	{
		return this.filterLevel;
	}	
};